package com.tom.mapper;

import com.tom.pojo.Restaurant;

import java.util.List;

public interface RestaurantMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Restaurant record);

    int insertSelective(Restaurant record);

    Restaurant selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Restaurant record);

    int updateByPrimaryKey(Restaurant record);

    Restaurant selectByUserId(Integer userId);

    List<Restaurant> selectByStatus(Byte status);

//    int updateStatusByPrimaryKey(Integer id, Byte status);
}